package com.cchr.acms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cchr.acms.dao.DoctorInfoDAO;
import com.cchr.acms.model.DoctorInfo;
import com.cchr.acms.service.DoctorInfoService;

/**
 * @author Zeng
 *
 */
@Service
public class DoctorInfoServiceImpl implements DoctorInfoService{
 
	@Autowired
	private DoctorInfoDAO doctorInfoDAO;
     
	public int insertDoctorInfo(DoctorInfo baseInfo) {
		return doctorInfoDAO.insertDoctorInfo(baseInfo);
	}

    public int updateDoctorInfo(DoctorInfo baseInfo) {
    	return doctorInfoDAO.updateDoctorInfo(baseInfo);
    }
    
    public DoctorInfo queryDoctorInfoById(int id) {
    	return doctorInfoDAO.queryDoctorInfoById(id);
    }
    
    public int deleteDoctorInfoById(int id) {
    	return doctorInfoDAO.deleteDoctorInfoById(id);
    }
    
	public List<DoctorInfo> getAllDoctor() {
		return doctorInfoDAO.getAllDoctor();
	}

	public List<DoctorInfo> queryDoctorInfoByCaseId(int caseId) {
		return doctorInfoDAO.queryDoctorInfoByCaseId(caseId);
	}

	public void deleteDoctorInfoByCaseId(int caseId) {
		doctorInfoDAO.deleteDoctorInfoByCaseId(caseId);
	}
}
